#include "DataStructure/Result/ElementalForce/QUAD4ForceData.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::Post;

bool SG::DataStructure::Post::operator== (const QUAD4ForceData& val1, const QUAD4ForceData& val2)
{
    FIELD_COMPARE (m_eId)
    FIELD_COMPARE (m_MX)
    FIELD_COMPARE (m_MY)
    FIELD_COMPARE (m_MXY)
    FIELD_COMPARE (m_BMX)
    FIELD_COMPARE (m_BMY)
    FIELD_COMPARE (m_BMXY)
    FIELD_COMPARE (m_TX)
    FIELD_COMPARE (m_TY)
    FIELD_COMPARE (m_domainId)  // NOLINT(readability-simplify-boolean-expr)
    return true;
}

bool SG::DataStructure::Post::operator< (const QUAD4ForceData& a, const QUAD4ForceData& b)
{
    return a.m_eId < b.m_eId;
}
